

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>layui后台管理模板 2.0</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="/public/layui/css/layui.css" media="all" />
	<link rel="stylesheet" href="/public/css/public.css" media="all" />
</head>
<style>
 .layui-col-sm4 {
	margin-left : 150px;
	width : 50% !important;
 }
 
 .minor {
	padding : 0px !important;
 }
</style>
<body class="childrenBody">
<!--<fieldset class="layui-elem-field layui-field-title layui-col-xs12">
	<legend>文章修改</legend>
</fieldset>-->

<form class="layui-form minor" id="editForm">

    <!--隐藏层级-->
	<input type="hidden" value="{{id}}" name="id" id="id"/>
	<input type="hidden" value="{{parentId}}" name="parentId"/>
	<input type="hidden" id="img" name="img" value="{{articlePicture}}">
	<input type="hidden" id="articleTypes" name="articleTypes" value="{{articleType}}">
	<input type="hidden" id="gg" value="{{columnId}}">

    <div class="layui-col-lg7 layui-col-sm7">
        <div class="layui-form-item">
            <label class="layui-form-label"><span style="color: red">*</span>文章标题</label>
            <div class="layui-input-block layui-col-lg7 layui-col-sm7">
                <input type="text" name="articleTitle" id="articleTitle" value="{{articleTitle}}" lay-verify="articleTitle|required" placeholder="请输入文章标题" autocomplete="off" class="layui-input required"  maxlength="20">
            </div>
        </div>
    </div>
	<div class="layui-col-lg7 layui-col-sm7" id="path" style="display: none">
		<div class="layui-form-item">
			<label class="layui-form-label"><span style="color: red">*</span>链接地址</label>
			<div class="layui-input-block layui-col-lg7 layui-col-sm7">
				<input type="text" name="articleSource" id="articleSource" value="{{articleSource}}"  placeholder="请输入链接地址" autocomplete="off" class="layui-input required" maxlength="40">
			</div>
		</div>
	</div>
	<div class="layui-col-lg7 layui-col-sm7" id="type" style="display: none">
		<div class="layui-form-item">
			<label class="layui-form-label">项目分类</label>
			<div class="layui-input-block layui-col-lg7 layui-col-sm7">
				<select id="articleType" name="articleType" >
					<option value="">请选择...</option>
					<option value="1">工会</option>
					<option value="2">手机端</option>
					<option value="3">学校</option>
					<option value="4">其他</option>
				</select>
			</div>
		</div>
	</div>

	
	<div class="layui-col-lg7 layui-col-sm7">
		<div class="layui-col-md5">
				<div class="layui-form-item">
					<label class="layui-form-label">所属栏目</label>
					<div class="layui-input-block layui-col-lg7 layui-col-sm7">
						<select id="columnIds" name="columnIds" lay-filter="change">
							<option value="">请选择...</option>
						</select>
					</div>
				</div>
		</div>
		
		<div class="layui-col-md3" style="margin-left: 8%">
				<div class="layui-form-item">
					<div class="layui-input-block">
						<select id="columnId" name="columnId">
							<option value="">请选择...</option>
						</select>
					</div>
				</div>
		</div>
	</div>
	
	<!--<div class="layui-col-lg4 layui-col-sm4">
        <div class="layui-form-item">
            <label class="layui-form-label">关键字</label>
            <div class="layui-input-block">
                <input type="text" name="articleKeyword" id="articleKeyword" value="{{articleKeyword}}" placeholder="请输入关键字" autocomplete="off" class="layui-input required"  maxlength="10">
            </div>
        </div>
    </div>
	-->
	<div class="layui-col-lg7 layui-col-sm7">
        <div class="layui-form-item">
            <label class="layui-form-label">发布时间</label>
            <div class="layui-input-block layui-col-lg7 layui-col-sm7">
				<input  name="publishTime" id="publishTime" value="{{publishTime}}" class="layui-input searchVal" id="publishTime" placeholder="yyyy-MM-dd" readonly />
            </div>
        </div>
    </div>
	
	<div class="layui-col-lg7 layui-col-sm7">
        <div class="layui-upload">
			<label class="layui-form-label">文章附件</label>
			<input id="upload" name="file" type="file"  style="display: none;" />
			<button type="button" class="layui-btn" id="url"><i class="layui-icon">&#xe67c;</i>添加附件</button>
			<input id="articleUrl" name="articleUrl" type="hidden" value="{{articleUrl}}">
			<span class='allUrl' style='display: none'></span>
			<div id="show" style="margin-top: 13px;margin-left: 100px;">
            </div>
		</div>
    </div>
	
	<div class="layui-col-lg7 layui-col-sm7">
        <div class="layui-upload">
			<label class="layui-form-label">文章封面</label>
			<i><a type="button"  id="text1"><img id="previewImg" src="/public/images/img-def.png" style="margin-top: 1.5%;height: 200px;"></a>
				<i type="button" class="layui-icon layui-icon-close" id="dele" title="删除" lay-event="del" style="display:none;font-size: 30px !important;position: relative;top: -70px;color: #999;">&#x1007;</i></i>
			<input type="hidden" id="fileInfoId" name="fileInfoId" value=""/>
			<div class="layui-upload-list">
				<img class="layui-upload-img" id="newsPicture" style="margin-top:2%;">
				<input type="hidden" id="articlePicture" name="articlePicture" value="{{articlePicture}}"/>
				<p id="demoText"></p>
			</div>
		</div>
    </div>

	<div class="layui-col-lg6 layui-col-sm6">
		<div class="layui-form-item">
			<label class="layui-form-label">文章内容</label>
			<div class="layui-input-block layui-col-lg10 layui-col-sm10">
				<textarea id="articleContent" name="articleContent" style="width: 100%; height: 400px;">{{articleContent}}</textarea>
			</div>
		</div>
	</div>
	
	<div class="layui-col-md12"  style="margin-top:15px;">
		<div class="layui-form-item">
			<div class="layui-input-block">
				<a class="layui-btn" lay-submit="" lay-filter="btnSubmitFormDraft">保存草稿</a>
				<a class="layui-btn" lay-submit=""  lay-filter="addSubmit" id="addSubmit">提交</a>
				<a class="layui-btn" lay-submit=""  lay-filter="btnSubmitForm1">保存后预览</a>
				<a class="layui-btn layui-btn-primary" id="goBack">返回</a>
			</div>
		</div>
	</div>

</form>
<style>

	/*.layui-form-select .layui-edge{*/
		/*right: -8px;*/
	/*}*/
	.layui-form-select .layui-input{
		padding-right: 10px;
		cursor: pointer;
		/*width: 100px;*/
	}
	.layui-form-selected dl{
		width: 100px;
	}
	.layui-input-block{
		margin:0;
	}
</style>
<script type="text/javascript" src="/public/js/jquery.min.js"></script>
<script type="text/javascript" src="/public/layui/layui.js"></script>
<script type="text/javascript" src="/js/public.function.js"></script>
<script src="/public/plugin/ueditor/ueditor.config.js"></script>
<script src="/public/plugin/ueditor/ueditor.all.js"></script>
<script src="/public/plugin/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="edit.js"></script>


</body>
</html>